package com.chy.controller;


import com.chy.common.R;
import com.chy.service.UserInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@Slf4j
@RestController
@RequestMapping("/userInfo")
public class UserInfoController {
    @Autowired
    UserInfoService userInfoService;
    @PostMapping("/update")
    public R<String> updateUserInfo(@RequestBody Map<String, Object> params) {
        return userInfoService.updateUserInfo(params);
    }
}
